<?php
/* @var $this DatabasesController */
/* @var $data Databases */
?>

<div class="view">
	<div class="<?php echo ($data->status == 0) ? "actived" : "missing";?>">
<!--
	<b><?php //echo CHtml::encode($data->getAttributeLabel('id')); ?>:</b>
	<?php //echo CHtml::link(CHtml::encode(outStr($data->id)), array('view', 'id'=>outStr($data->id))); ?>
	<br />
-->
	<b><?php echo CHtml::encode($data->getAttributeLabel('name')); ?>:</b>
	<?php echo CHtml::encode($data->name); ?>
	<br />

	<a href="<?php echo Yii::app()->createUrl('/databases/update?id='.outStr($data->id));?>" >Update</a>
	<br />
	<p <?php echo ($data->status == 0) ? "style='background:green; color:white; width:50px; padding:10px; float:right;margin-top: -40px;'" : "style='background:red; color:white; width:50px; padding:10px; float:right;margin-top: -40px;'";?>>
		<a href="#" uuid="<?php echo outStr($data->id);?>" style="color:#fff; text-decoration: none;" status="<?php echo ($data->status == 0) ? "Actived" : "Missing";?>" class="changeStatus">
			<?php echo ($data->status == 0) ? "Actived" : "Missing";?>
		</a>
		
	</p>
	</div>
</div>